package cn.jk;

import cn.jk.bean.BeanInjection;
import cn.jk.bean.BeanNew;
import cn.jk.config.Appconfig;
import cn.jk.config.MyApplicationEvent;
import cn.jk.dao.ImportSelectorDao;
import cn.jk.service.AopService;
import cn.jk.service.ListenService;
import cn.jk.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Application {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Appconfig.class);
//		UserService userService = (UserService) context.getBean("userService");
//		userService.queryTest();
//		userService.queryTest();
		/***********************************发布事件*************************************************/
//		context.publishEvent(new MyApplicationEvent<Integer>(5));
//		context.close();
		/********************************************************************************************/
//		AopService bean = (AopService) context.getBean("aopService");
//		bean.test("哈哈哈");
		BeanNew beanNew = new BeanNew();
		beanNew.test();
		System.out.println("结束");
	}
}
/**
 * 5.10   @Configurable注解待待研究底层原理
 *
 * 6.1
 */
